class ModifySchemeForSendTransitions < ActiveRecord::Migration
  def self.up
    add_column :transitions, :type, :string
    add_column :transitions, :send_to_locator, :string#for dynamic/ "beam" urls
    add_column :transitions, :send_to, :string #for static urls
    add_column :transitions, :redirect_to_locator, :string#where to place redirect url in token xml
    add_column :transitions, :redirect_to_transition, :string #to which transition redirect url should be set
	add_column :transitions, :location_locator, :string#where to place location url got back from receive transition
    remove_column :transitions, :manual_execution
  end
  
  def self.down
    remove_column :transitions, :type
    remove_column :transitions, :send_to_locator
    remove_column :transitions, :send_to
    remove_column :transitions, :redirect_to_locator
    remove_column :transitions, :redirect_to_transition
    remove_column :transitions, :location_locator
    add_column :transitions, :manual_execution, :boolean, :default => true
  end
end
